* xterm.c (x_alloc_nearest_color_1): Use a more-precise algorithm
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 07:53:14 +0000 (00:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 07:53:14 +0000 (00:53 -0700)
commit957ef8b661cc414fd5b2209236cf537f6084a785
tree185b8c94fda39f569c5a521387e73768c2ef0c36
parent6e96b383dfcf6968c1952bd02328c04c4232c0b7
* xterm.c (x_alloc_nearest_color_1): Use a more-precise algorithm

for nearest color, one that neither overflows nor relies on unsigned
arithmetic.
src/ChangeLog
src/xterm.c